public class EmptyKeyManager extends Object implements KeyManager
Constructor and Description |
---|
EmptyKeyManager() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAvailableCredentials()
Method provides list of all credentials available in the storage.
|
X509Certificate |
getCertificate(String alias)
Returns certificate with the given alias from the keystore.
|
org.opensaml.xml.security.credential.Credential |
getCredential(String keyName)
Returns Credential object used to sign the messages issued by this entity.
|
org.opensaml.xml.security.credential.Credential |
getDefaultCredential()
Returns Credential object used to sign the messages issued by this entity.
|
String |
getDefaultCredentialName()
Method provides name of the credential which should be used by default when no other is specified.
|
Iterable<org.opensaml.xml.security.credential.Credential> |
resolve(org.opensaml.xml.security.CriteriaSet criteria) |
org.opensaml.xml.security.credential.Credential |
resolveSingle(org.opensaml.xml.security.CriteriaSet criteria) |
public org.opensaml.xml.security.credential.Credential getCredential(String keyName)
KeyManager
getCredential
in interface KeyManager
keyName
- name of the key to use, in case of null default key is usedpublic org.opensaml.xml.security.credential.Credential getDefaultCredential()
KeyManager
getDefaultCredential
in interface KeyManager
public String getDefaultCredentialName()
KeyManager
getDefaultCredentialName
in interface KeyManager
public Set<String> getAvailableCredentials()
KeyManager
getAvailableCredentials
in interface KeyManager
public X509Certificate getCertificate(String alias)
KeyManager
getCertificate
in interface KeyManager
alias
- alias of certificate to findpublic Iterable<org.opensaml.xml.security.credential.Credential> resolve(org.opensaml.xml.security.CriteriaSet criteria) throws org.opensaml.xml.security.SecurityException
resolve
in interface org.opensaml.xml.security.Resolver<org.opensaml.xml.security.credential.Credential,org.opensaml.xml.security.CriteriaSet>
org.opensaml.xml.security.SecurityException
public org.opensaml.xml.security.credential.Credential resolveSingle(org.opensaml.xml.security.CriteriaSet criteria) throws org.opensaml.xml.security.SecurityException
resolveSingle
in interface org.opensaml.xml.security.Resolver<org.opensaml.xml.security.credential.Credential,org.opensaml.xml.security.CriteriaSet>
org.opensaml.xml.security.SecurityException