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, setValidatedAccountclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetStatus, getValidatedAccountpublic X509CertificateCredentials(X509Certificate certificate)
public X509CertificateCredentials(X509Certificate certificate, String subjectRegex)
public X509Certificate getCertificate()
public String getUsername()
public void setUserName(String userName)
public void invalidate()
CredentialsInvalidates the credential.
invalidate in interface Credentialspublic 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.