public class VcdSignLoginCredentials extends Object implements ClientCredentials
| Constructor and Description |
|---|
VcdSignLoginCredentials(String samlBearerTokenXml,
String org)
Construct a
ClientCredentials object to generate vCD custom format SIGN
Authentication header for login message to login into the specified org using the provided
bearer token. |
VcdSignLoginCredentials(String samlHokTokenXml,
String org,
PrivateKey privateKey)
Construct a
ClientCredentials object to generate vCD custom format SIGN
Authentication header for login message to login into the specified org using the provided
Holder-of-Key token and its signature generated using the specified private key. |
| Modifier and Type | Method and Description |
|---|---|
String |
getHeaderName()
Returns the name of the HTTP header used for authentication in a REST request
|
String |
getHeaderValue()
Renders client authentication credentials in a form suitable to be used
as the value in a header whose name is returned by
ClientCredentials.getHeaderName() |
boolean |
supportsSessionless()
Indicates whether the ClientCredentials supports session-less requests.
|
public VcdSignLoginCredentials(String samlBearerTokenXml, String org)
ClientCredentials object to generate vCD custom format SIGN
Authentication header for login message to login into the specified org using the provided
bearer token.samlBearerTokenXml - Bearer Token in xml format to be used to login.org - The organization to log into using the specified token.public VcdSignLoginCredentials(String samlHokTokenXml, String org, PrivateKey privateKey) throws GeneralSecurityException
ClientCredentials object to generate vCD custom format SIGN
Authentication header for login message to login into the specified org using the provided
Holder-of-Key token and its signature generated using the specified private key.samlHokTokenXml - Holder-of-Key Token in xml format to be used to login.org - The organization to log into using the specified token.privateKey - PrivateKey to sign the token with. Signature is generated using
algorithm.GeneralSecurityException - if there is a problem generating the signature.public String getHeaderValue()
ClientCredentialsClientCredentials.getHeaderName()getHeaderValue in interface ClientCredentialspublic String getHeaderName()
ClientCredentialsgetHeaderName in interface ClientCredentialspublic boolean supportsSessionless()
ClientCredentialssupportsSessionless in interface ClientCredentialsCopyright © 2019 VMware. All rights reserved.