public class CredentialImpl extends Object implements Credential
CredentialImpl with added Elytron support.Credential.Tag| Constructor and Description |
|---|
CredentialImpl(String userName,
String password,
String securityContext,
boolean elytronEnabled,
org.wildfly.common.function.ExceptionSupplier<org.wildfly.security.credential.source.CredentialSource,Exception> credentialSourceSupplier)
Create a new CredentialImpl.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getPassword() |
String |
getSecurityDomain() |
String |
getUserName() |
int |
hashCode() |
boolean |
isElytronEnabled()
Indicates if Elytron is enabled.
|
String |
resolveSecurityDomain() |
String |
toString() |
void |
validate() |
public CredentialImpl(String userName, String password, String securityContext, boolean elytronEnabled, org.wildfly.common.function.ExceptionSupplier<org.wildfly.security.credential.source.CredentialSource,Exception> credentialSourceSupplier) throws org.jboss.jca.common.api.validator.ValidateException
userName - user namepassword - user passwordsecurityContext - specific information that helps implementation define which context this Credential belongs toelytronEnabled - is the authentication performed by Elytron. If true, , defined as
securityDomain in super class, refers to an Elytron authentication contextorg.jboss.jca.common.api.validator.ValidateException - ValidateException in case of validation errorpublic void validate()
throws org.jboss.jca.common.api.validator.ValidateException
validate in interface org.jboss.jca.common.api.metadata.ValidatableMetadataorg.jboss.jca.common.api.validator.ValidateExceptionpublic final String getSecurityDomain()
getSecurityDomain in interface org.jboss.jca.common.api.metadata.common.Credentialpublic final String resolveSecurityDomain()
resolveSecurityDomain in interface org.jboss.jca.common.api.metadata.common.SecurityMetadatapublic final String getUserName()
getUserName in interface org.jboss.jca.common.api.metadata.common.Credentialpublic final String getPassword()
getPassword in interface org.jboss.jca.common.api.metadata.common.Credentialpublic final boolean isElytronEnabled()
getSecurityDomain(), refers to an Elytron authentication contexttrue if is Elytron enabledCopyright © 2020 JBoss by Red Hat. All rights reserved.