org.wildfly.security.authz.Attributes.asReadOnly()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(161)

本文整理了Java中org.wildfly.security.authz.Attributes.asReadOnly()方法的一些代码示例,展示了Attributes.asReadOnly()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attributes.asReadOnly()方法的具体详情如下:
包路径:org.wildfly.security.authz.Attributes
类名称:Attributes
方法名:asReadOnly

Attributes.asReadOnly介绍

[英]Returns a read-only instance of this instance.
[中]返回此实例的只读实例。

代码示例

代码示例来源:origin: wildfly/wildfly

/**
 * Get the attributes associated with this identity.
 *
 * @return a read-only instance of {@link Attributes} with all attributes associated with this identity
 */
public Attributes getAttributes() {
  return this.authorizationIdentity.getAttributes().asReadOnly();
}

代码示例来源:origin: wildfly/wildfly

@Override
public Attributes getAttributes() throws RealmUnavailableException {
  final LoadedIdentity loadedIdentity = loadIdentity(true, false);
  if (loadedIdentity == null) {
    throw ElytronMessages.log.fileSystemRealmNotFound(name);
  }
  return loadedIdentity.getAttributes().asReadOnly();
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron-auth-server

/**
 * Get the attributes associated with this identity.
 *
 * @return a read-only instance of {@link Attributes} with all attributes associated with this identity
 */
public Attributes getAttributes() {
  return this.authorizationIdentity.getAttributes().asReadOnly();
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

/**
 * Get the attributes associated with this identity.
 *
 * @return a read-only instance of {@link Attributes} with all attributes associated with this identity
 */
public Attributes getAttributes() {
  return this.authorizationIdentity.getAttributes().asReadOnly();
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

/**
 * Get the attributes associated with this identity.
 *
 * @return a read-only instance of {@link Attributes} with all attributes associated with this identity
 */
public Attributes getAttributes() {
  return this.authorizationIdentity.getAttributes().asReadOnly();
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

@Override
public Attributes getAttributes() throws RealmUnavailableException {
  final LoadedIdentity loadedIdentity = loadIdentity(true, false);
  if (loadedIdentity == null) {
    throw ElytronMessages.log.fileSystemRealmNotFound(name);
  }
  return loadedIdentity.getAttributes().asReadOnly();
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

@Override
public Attributes getAttributes() throws RealmUnavailableException {
  final LoadedIdentity loadedIdentity = loadIdentity(true, false);
  if (loadedIdentity == null) {
    throw ElytronMessages.log.fileSystemRealmNotFound(name);
  }
  return loadedIdentity.getAttributes().asReadOnly();
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron-realm

@Override
public Attributes getAttributes() throws RealmUnavailableException {
  final LoadedIdentity loadedIdentity = loadIdentity(true, false);
  if (loadedIdentity == null) {
    throw ElytronMessages.log.fileSystemRealmNotFound(name);
  }
  return loadedIdentity.getAttributes().asReadOnly();
}

相关文章