public class AuthenticationMechanism extends Object
| Constructor and Description |
|---|
AuthenticationMechanism(AuthenticationType authenticationType)
Constructor that is used for certificate authority authentication.
|
AuthenticationMechanism(String primaryThumbprint,
String secondaryThumbprint)
Constructor that saves a thumbprint used for self signed authentication
|
AuthenticationMechanism(SymmetricKey symmetricKey)
Constructor that saves a symmetric key used for SAS authentication
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
AuthenticationType |
getAuthenticationType()
Getter for authentication type.
|
String |
getPrimaryThumbprint()
Returns the primary thumbprint
|
String |
getSecondaryThumbprint()
Returns the secondary thumbprint
|
SymmetricKey |
getSymmetricKey()
Getter for symmetric key.
|
void |
setAuthenticationType(AuthenticationType type)
Setter for the authentication type of this object
|
void |
setPrimaryThumbprint(String primaryThumbprint)
Setter for the primary thumbprint
|
void |
setSecondaryThumbprint(String secondaryThumbprint)
Setter for the secondary thumbprint
|
void |
setSymmetricKey(SymmetricKey symmetricKey)
Setter for symmetric key.
|
public AuthenticationMechanism(SymmetricKey symmetricKey) throws IllegalArgumentException
symmetricKey - the key to use for authenticationIllegalArgumentException - if the provided symmetricKey is nullpublic AuthenticationMechanism(String primaryThumbprint, String secondaryThumbprint)
primaryThumbprint - the primary thumbprint to use for authenticationsecondaryThumbprint - the secondary thumbprint to use for authenticationpublic AuthenticationMechanism(AuthenticationType authenticationType)
authenticationType - the type of authentication for this to use.public SymmetricKey getSymmetricKey()
public String getPrimaryThumbprint()
nullpublic String getSecondaryThumbprint()
nullpublic void setSymmetricKey(SymmetricKey symmetricKey) throws IllegalArgumentException
symmetricKey - the symmetric key to setIllegalArgumentException - if the provided symmetricKey is nullpublic void setPrimaryThumbprint(String primaryThumbprint)
primaryThumbprint - the value to setpublic void setSecondaryThumbprint(String secondaryThumbprint)
secondaryThumbprint - the value to setpublic AuthenticationType getAuthenticationType()
public void setAuthenticationType(AuthenticationType type) throws IllegalArgumentException
type - the type of authentication to setIllegalArgumentException - if the provided type is nullCopyright © 2022. All rights reserved.