Package org.opensaml.saml.security.impl
Class SAMLMDCredentialContext
- java.lang.Object
-
- org.opensaml.saml.security.impl.SAMLMDCredentialContext
-
- All Implemented Interfaces:
CredentialContext
public class SAMLMDCredentialContext extends Object implements CredentialContext
A credential context for credentials resolved from aKeyInfothat was found in SAML 2 metadata.
-
-
Field Summary
Fields Modifier and Type Field Description private List<EncryptionMethod>encMethodsEncryption methods associated with the credential.private KeyDescriptorkeyDescriptorKey descriptor which contained the KeyInfo used.private RoleDescriptorroleRole in which credential was resolved.
-
Constructor Summary
Constructors Constructor Description SAMLMDCredentialContext(KeyDescriptor descriptor)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EncryptionMethod>getEncryptionMethods()Return the list ofEncryptionMethod's associated with credential context.KeyDescriptorgetKeyDescriptor()Get the key descriptor context.RoleDescriptorgetRoleDescriptor()Get the role descriptor context.
-
-
-
Field Detail
-
keyDescriptor
private KeyDescriptor keyDescriptor
Key descriptor which contained the KeyInfo used.
-
role
private RoleDescriptor role
Role in which credential was resolved.
-
encMethods
private List<EncryptionMethod> encMethods
Encryption methods associated with the credential.
-
-
Constructor Detail
-
SAMLMDCredentialContext
public SAMLMDCredentialContext(KeyDescriptor descriptor)
Constructor.- Parameters:
descriptor- the KeyDescriptor context from which a credential was resolved
-
-
Method Detail
-
getKeyDescriptor
public KeyDescriptor getKeyDescriptor()
Get the key descriptor context.- Returns:
- key descriptor
-
getEncryptionMethods
public List<EncryptionMethod> getEncryptionMethods()
Return the list ofEncryptionMethod's associated with credential context.- Returns:
- a list of SAML metadata encryption method associated with this context
-
getRoleDescriptor
public RoleDescriptor getRoleDescriptor()
Get the role descriptor context.- Returns:
- role descriptor
-
-