@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { return LegacyPropertiesSecurityRealm.this.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); }
@Override public SupportLevel getEvidenceVerifySupport(final Class<? extends Evidence> evidenceType, final String algorithmName) throws RealmUnavailableException { return LegacyPropertiesSecurityRealm.this.getEvidenceVerifySupport(evidenceType, algorithmName); }
/** * Builds the {@link LegacyPropertiesSecurityRealm}. * @return built {@link LegacyPropertiesSecurityRealm} * @throws IOException when loading of property files fails * @throws java.io.FileNotFoundException when property file does not exist * @throws RealmUnavailableException when property file of users does not contain realm name specification */ public LegacyPropertiesSecurityRealm build() throws IOException { LegacyPropertiesSecurityRealm realm = new LegacyPropertiesSecurityRealm(this); realm.load(usersStream, groupsStream); return realm; }
void reload() throws OperationFailedException { try (InputStream usersInputStream = new FileInputStream(usersFile); InputStream groupsInputStream = groupsFile != null ? new FileInputStream(groupsFile) : null) { delegate.load(usersInputStream, groupsInputStream); } catch (IOException e) { throw ROOT_LOGGER.unableToReLoadPropertiesFiles(e); } }
@Override public RealmIdentity getRealmIdentity(Evidence evidence) throws RealmUnavailableException { return delegate.getRealmIdentity(evidence); }
long getLoadTime() { return delegate.getLoadTime(); }
@Override public RealmIdentity getRealmIdentity(Principal principal) throws RealmUnavailableException { return delegate.getRealmIdentity(principal); }
/** * Builds the {@link LegacyPropertiesSecurityRealm}. * @return built {@link LegacyPropertiesSecurityRealm} * @throws IOException when loading of property files fails * @throws java.io.FileNotFoundException when property file does not exist * @throws RealmUnavailableException when property file of users does not contain realm name specification */ public LegacyPropertiesSecurityRealm build() throws IOException { LegacyPropertiesSecurityRealm realm = new LegacyPropertiesSecurityRealm(this); realm.load(usersStream, groupsStream); return realm; }
@Override public <C extends Credential> C getCredential(final Class<C> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { if (accountEntry.getPasswordRepresentation() == null || LegacyPropertiesSecurityRealm.this.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec) == SupportLevel.UNSUPPORTED) { log.tracef("PropertiesRealm: Unable to obtain credential for identity [%s]", principal); return null;
@Override public SupportLevel getEvidenceVerifySupport(final Class<? extends Evidence> evidenceType, final String algorithmName) throws RealmUnavailableException { return LegacyPropertiesSecurityRealm.this.getEvidenceVerifySupport(evidenceType, algorithmName); }
/** * Builds the {@link LegacyPropertiesSecurityRealm}. * @return built {@link LegacyPropertiesSecurityRealm} * @throws IOException when loading of property files fails * @throws java.io.FileNotFoundException when property file does not exist * @throws RealmUnavailableException when property file of users does not contain realm name specification */ public LegacyPropertiesSecurityRealm build() throws IOException { LegacyPropertiesSecurityRealm realm = new LegacyPropertiesSecurityRealm(this); realm.load(usersStream, groupsStream); return realm; }
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { return LegacyPropertiesSecurityRealm.this.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); }
@Override public SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) throws RealmUnavailableException { return delegate.getEvidenceVerifySupport(evidenceType, algorithmName); }
/** * Builds the {@link LegacyPropertiesSecurityRealm}. * @return built {@link LegacyPropertiesSecurityRealm} * @throws IOException when loading of property files fails * @throws java.io.FileNotFoundException when property file does not exist * @throws RealmUnavailableException when property file of users does not contain realm name specification */ public LegacyPropertiesSecurityRealm build() throws IOException { LegacyPropertiesSecurityRealm realm = new LegacyPropertiesSecurityRealm(this); realm.load(usersStream, groupsStream); return realm; }
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { return LegacyPropertiesSecurityRealm.this.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); }
@Override public SupportLevel getEvidenceVerifySupport(final Class<? extends Evidence> evidenceType, final String algorithmName) throws RealmUnavailableException { return LegacyPropertiesSecurityRealm.this.getEvidenceVerifySupport(evidenceType, algorithmName); }
@Override public SupportLevel getCredentialAcquireSupport(final Class<? extends Credential> credentialType, final String algorithmName, final AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { return LegacyPropertiesSecurityRealm.this.getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec); }
@Override public SupportLevel getEvidenceVerifySupport(final Class<? extends Evidence> evidenceType, final String algorithmName) throws RealmUnavailableException { return LegacyPropertiesSecurityRealm.this.getEvidenceVerifySupport(evidenceType, algorithmName); }
public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException { return delegate.getCredentialAcquireSupport(credentialType, algorithmName); }
public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName) throws RealmUnavailableException { return delegate.getCredentialAcquireSupport(credentialType, algorithmName); }