Package com.veertu.ankaMgmtSdk
Class UakAuthenticator
java.lang.Object
com.veertu.ankaMgmtSdk.UakAuthenticator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.NameValuePair
Gets the Authorization header for the Anka Management API.
-
Constructor Details
-
UakAuthenticator
public UakAuthenticator(List<String> mgmtURLs, boolean skipTLSVerification, String rootCA, String id, String pemKey) Initializes a new instance of the UakAuthenticator class.- Parameters:
mgmtURLs
- the Anka Management API URLsskipTLSVerification
- whether to skip TLS verificationrootCA
- the root CA certificate in PEM formatid
- the UAK IDpemKey
- the RSA private key in PEM format
-
-
Method Details
-
getAuthorization
Gets the Authorization header for the Anka Management API.- Returns:
- the Authorization header
- Throws:
AnkaMgmtException
- if the request failsClientException
- if the request fails
-