Package com.venafi.vcert.sdk.connectors
Interface TokenConnector
-
- All Superinterfaces:
Connector,IPMConnector,ISSHConnector
- All Known Implementing Classes:
TppTokenConnector,VCertTknClient
public interface TokenConnector extends Connector
This represents the connector to TPP to be used with an access token.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TokenInfogetAccessToken()returns a new access token.TokenInfogetAccessToken(Authentication auth)returns a new access token.TokenInfogetTokenInfo()TokenInforefreshAccessToken(String applicationId)this is for refreshing a token.intrevokeAccessToken()-
Methods inherited from interface com.venafi.vcert.sdk.connectors.Connector
authenticate, authorize, generateRequest, getCredentials, getType, getVendorAndProductName, importCertificate, isEmptyCredentials, ping, readZoneConfiguration, renewCertificate, requestCertificate, requestCertificate, retrieveCertificate, revokeCertificate, setBaseUrl, setVendorAndProductName, setZone
-
Methods inherited from interface com.venafi.vcert.sdk.connectors.IPMConnector
getPolicy, readPolicyConfiguration, setPolicy
-
Methods inherited from interface com.venafi.vcert.sdk.connectors.ISSHConnector
requestSshCertificate, retrieveSshCertificate, retrieveSshConfig
-
-
-
-
Method Detail
-
getTokenInfo
TokenInfo getTokenInfo() throws VCertException
- Throws:
VCertException
-
getAccessToken
TokenInfo getAccessToken(Authentication auth) throws VCertException
returns a new access token.- Parameters:
auth- authentication info- Returns:
- the new token.
- Throws:
VCertException- throws this exception when authentication info is null.
-
getAccessToken
TokenInfo getAccessToken() throws VCertException
returns a new access token. This method uses theAuthenticationobject passed earlier with theConfigobject.- Returns:
- the new token.
- Throws:
VCertException- throws this exception when authentication info is null.
-
refreshAccessToken
TokenInfo refreshAccessToken(String applicationId) throws VCertException
this is for refreshing a token.- Parameters:
applicationId- the application id.- Returns:
- a complete info about the new access token, refresh token, expires.
- Throws:
VCertException
-
revokeAccessToken
int revokeAccessToken() throws VCertException- Returns:
- 1 if the access token was revoked and 0 if not.
- Throws:
VCertException
-
-