public class AuthenticationTransaction
extends java.lang.Object
implements java.io.Serializable
AuthenticationTransaction.| Modifier | Constructor and Description |
|---|---|
protected |
AuthenticationTransaction(Service service,
java.util.Collection<Credential> credentials)
Instantiates a new Default authentication transaction.
|
| Modifier and Type | Method and Description |
|---|---|
Credential |
getCredential()
Gets the first (primary) credential in the chain.
|
java.util.Collection<Credential> |
getCredentials() |
Service |
getService() |
boolean |
isCredentialOfType(java.lang.Class clazz)
Is credential of given type?
|
static AuthenticationTransaction |
wrap(Credential... credentials)
Wrap credentials into an authentication transaction, as a factory method,
and return the final result.
|
static AuthenticationTransaction |
wrap(Service service,
Credential... credentials)
Wrap credentials into an authentication transaction, as a factory method,
and return the final result.
|
protected AuthenticationTransaction(Service service, java.util.Collection<Credential> credentials)
service - the servicecredentials - the credentialspublic java.util.Collection<Credential> getCredentials()
public static AuthenticationTransaction wrap(Service service, Credential... credentials)
service - the servicecredentials - the credentialspublic static AuthenticationTransaction wrap(Credential... credentials)
credentials - the credentialspublic Service getService()
public Credential getCredential()
public boolean isCredentialOfType(java.lang.Class clazz)
clazz - the clazz