public class PrincipalFdkCredential extends Object implements FdkCredential
java.security.Principal
identity.Constructor and Description |
---|
PrincipalFdkCredential(Principal principal)
Constructor.
|
PrincipalFdkCredential(Principal principal,
Map options)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Map |
getOptions()
Returns the login options.
|
Principal |
getPrincipal()
Returns the encapsulated Principal.
|
String |
getUsername()
Returns the username for this credential.
|
public PrincipalFdkCredential(Principal principal)
principal
- The Principal to encapsulate.public Principal getPrincipal()
public String getUsername()
getUsername
in interface FdkCredential
null
if the username is not known.public Map getOptions()
getOptions
in interface FdkCredential
Copyright © 2023. All rights reserved.