public class ClientCertificate extends Object implements ClientIdentity
| Constructor and Description |
|---|
ClientCertificate(String certificate,
String key,
String clientId)
Represents certificate based client identity.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCertificate()
PEM encoded certificate chain.
|
String |
getId()
Client id of identity service instance.
|
String |
getKey()
PEM encoded private key the certificate is signed with.
|
int |
hashCode() |
boolean |
isValid()
Returns true, if the mandatory attributes in ClientIdentity class are filled
for the specified authentication method i.e X.509 or client secret
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSecret, hasValue, isCertificateBasedpublic ClientCertificate(@Nullable String certificate, @Nullable String key, @Nullable String clientId)
certificate - PEM encoded X.509 certificate of the OAuth 2.0 clientkey - PEM encoded X.509 private key of the OAuth 2.0 clientclientId - ID of the OAuth 2.0 client requesting the token.public String getCertificate()
ClientIdentitygetCertificate in interface ClientIdentitypublic String getKey()
ClientIdentitygetKey in interface ClientIdentitypublic String getId()
ClientIdentitygetId in interface ClientIdentitypublic boolean isValid()
ClientIdentityisValid in interface ClientIdentityCopyright © 2023. All rights reserved.