streamWriter.writeEndElement(); final Iterator<Attributes.Entry> entryIter = newIdentity.getAttributes().entries().iterator(); if (entryIter.hasNext()) { streamWriter.writeCharacters("\n ");
public void setCredentials(final Collection<? extends Credential> credentials) throws RealmUnavailableException { Assert.checkNotNullParam("credential", credentials); final LoadedIdentity loadedIdentity = loadIdentity(false, false); if (loadedIdentity == null) { throw ElytronMessages.log.fileSystemRealmNotFound(name); } final LoadedIdentity newIdentity = new LoadedIdentity(name, new ArrayList<>(credentials), loadedIdentity.getAttributes()); replaceIdentity(newIdentity); }
streamWriter.writeEndElement(); final Iterator<Attributes.Entry> entryIter = newIdentity.getAttributes().entries().iterator(); if (entryIter.hasNext()) { streamWriter.writeCharacters("\n ");
streamWriter.writeEndElement(); final Iterator<Attributes.Entry> entryIter = newIdentity.getAttributes().entries().iterator(); if (entryIter.hasNext()) { streamWriter.writeCharacters("\n ");
streamWriter.writeEndElement(); final Iterator<Attributes.Entry> entryIter = newIdentity.getAttributes().entries().iterator(); if (entryIter.hasNext()) { streamWriter.writeCharacters("\n ");
public AuthorizationIdentity getAuthorizationIdentity() throws RealmUnavailableException { final LoadedIdentity loadedIdentity = loadIdentity(true, false); return loadedIdentity == null ? AuthorizationIdentity.EMPTY : AuthorizationIdentity.basicIdentity(loadedIdentity.getAttributes()); }
public AuthorizationIdentity getAuthorizationIdentity() throws RealmUnavailableException { final LoadedIdentity loadedIdentity = loadIdentity(true, false); return loadedIdentity == null ? AuthorizationIdentity.EMPTY : AuthorizationIdentity.basicIdentity(loadedIdentity.getAttributes()); }
@Override public Attributes getAttributes() throws RealmUnavailableException { final LoadedIdentity loadedIdentity = loadIdentity(true, false); if (loadedIdentity == null) { throw ElytronMessages.log.fileSystemRealmNotFound(name); } return loadedIdentity.getAttributes().asReadOnly(); }
public void setCredentials(final Collection<? extends Credential> credentials) throws RealmUnavailableException { Assert.checkNotNullParam("credential", credentials); final LoadedIdentity loadedIdentity = loadIdentity(false, false); if (loadedIdentity == null) { throw ElytronMessages.log.fileSystemRealmNotFound(name); } final LoadedIdentity newIdentity = new LoadedIdentity(name, new ArrayList<>(credentials), loadedIdentity.getAttributes()); replaceIdentity(newIdentity); }
public AuthorizationIdentity getAuthorizationIdentity() throws RealmUnavailableException { final LoadedIdentity loadedIdentity = loadIdentity(true, false); return loadedIdentity == null ? AuthorizationIdentity.EMPTY : AuthorizationIdentity.basicIdentity(loadedIdentity.getAttributes()); }
public void setCredentials(final Collection<? extends Credential> credentials) throws RealmUnavailableException { Assert.checkNotNullParam("credential", credentials); final LoadedIdentity loadedIdentity = loadIdentity(false, false); if (loadedIdentity == null) { throw ElytronMessages.log.fileSystemRealmNotFound(name); } final LoadedIdentity newIdentity = new LoadedIdentity(name, new ArrayList<>(credentials), loadedIdentity.getAttributes()); replaceIdentity(newIdentity); }
@Override public Attributes getAttributes() throws RealmUnavailableException { final LoadedIdentity loadedIdentity = loadIdentity(true, false); if (loadedIdentity == null) { throw ElytronMessages.log.fileSystemRealmNotFound(name); } return loadedIdentity.getAttributes().asReadOnly(); }
public void setCredentials(final Collection<? extends Credential> credentials) throws RealmUnavailableException { Assert.checkNotNullParam("credential", credentials); final LoadedIdentity loadedIdentity = loadIdentity(false, false); if (loadedIdentity == null) { throw ElytronMessages.log.fileSystemRealmNotFound(name); } final LoadedIdentity newIdentity = new LoadedIdentity(name, new ArrayList<>(credentials), loadedIdentity.getAttributes()); replaceIdentity(newIdentity); }
@Override public Attributes getAttributes() throws RealmUnavailableException { final LoadedIdentity loadedIdentity = loadIdentity(true, false); if (loadedIdentity == null) { throw ElytronMessages.log.fileSystemRealmNotFound(name); } return loadedIdentity.getAttributes().asReadOnly(); }
public AuthorizationIdentity getAuthorizationIdentity() throws RealmUnavailableException { final LoadedIdentity loadedIdentity = loadIdentity(true, false); return loadedIdentity == null ? AuthorizationIdentity.EMPTY : AuthorizationIdentity.basicIdentity(loadedIdentity.getAttributes()); }
@Override public Attributes getAttributes() throws RealmUnavailableException { final LoadedIdentity loadedIdentity = loadIdentity(true, false); if (loadedIdentity == null) { throw ElytronMessages.log.fileSystemRealmNotFound(name); } return loadedIdentity.getAttributes().asReadOnly(); }