public class X509CertificateCredentials extends AbstractBaseCredentials implements Credentials
Credentials.Status
Constructor and Description |
---|
X509CertificateCredentials(X509Certificate certificate) |
X509CertificateCredentials(X509Certificate certificate,
String subjectRegex) |
Modifier and Type | Method and Description |
---|---|
X509Certificate |
getCertificate() |
String |
getUsername() |
void |
invalidate()
Invalidates the credential.
|
boolean |
isTrusted() |
void |
setTrusted(boolean trusted)
Indicates if the provided certificate should be trusted and perform the validation against the existence of
the principal.
|
void |
setUserName(String userName) |
String |
toString() |
getStatus, getValidatedAccount, setStatus, setValidatedAccount
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStatus, getValidatedAccount
public X509CertificateCredentials(X509Certificate certificate)
public X509CertificateCredentials(X509Certificate certificate, String subjectRegex)
public X509Certificate getCertificate()
public String getUsername()
public void setUserName(String userName)
public void invalidate()
Credentials
Invalidates the credential.
invalidate
in interface Credentials
public void setTrusted(boolean trusted)
Indicates if the provided certificate should be trusted and perform the validation against the existence of the principal.
trusted
- public boolean isTrusted()
Copyright © 2018 JBoss by Red Hat. All rights reserved.