Class SAMLMDCredentialContext

  • All Implemented Interfaces:
    org.opensaml.security.credential.CredentialContext

    public class SAMLMDCredentialContext
    extends Object
    implements org.opensaml.security.credential.CredentialContext
    A credential context for credentials resolved from a KeyInfo that was found in SAML 2 metadata.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private List<org.opensaml.saml.saml2.metadata.EncryptionMethod> encMethods
      Encryption methods associated with the credential.
      private org.opensaml.saml.saml2.metadata.KeyDescriptor keyDescriptor
      Key descriptor which contained the KeyInfo used.
      private org.opensaml.saml.saml2.metadata.RoleDescriptor role
      Role in which credential was resolved.
    • Constructor Summary

      Constructors 
      Constructor Description
      SAMLMDCredentialContext​(org.opensaml.saml.saml2.metadata.KeyDescriptor descriptor)
      Constructor.
    • Field Detail

      • keyDescriptor

        private org.opensaml.saml.saml2.metadata.KeyDescriptor keyDescriptor
        Key descriptor which contained the KeyInfo used.
      • role

        private org.opensaml.saml.saml2.metadata.RoleDescriptor role
        Role in which credential was resolved.
      • encMethods

        private List<org.opensaml.saml.saml2.metadata.EncryptionMethod> encMethods
        Encryption methods associated with the credential.
    • Constructor Detail

      • SAMLMDCredentialContext

        public SAMLMDCredentialContext​(org.opensaml.saml.saml2.metadata.KeyDescriptor descriptor)
        Constructor.
        Parameters:
        descriptor - the KeyDescriptor context from which a credential was resolved
    • Method Detail

      • getKeyDescriptor

        public org.opensaml.saml.saml2.metadata.KeyDescriptor getKeyDescriptor()
        Get the key descriptor context.
        Returns:
        key descriptor
      • getEncryptionMethods

        public List<org.opensaml.saml.saml2.metadata.EncryptionMethod> getEncryptionMethods()
        Return the list of EncryptionMethod's associated with credential context.
        Returns:
        a list of SAML metadata encryption method associated with this context
      • getRoleDescriptor

        public org.opensaml.saml.saml2.metadata.RoleDescriptor getRoleDescriptor()
        Get the role descriptor context.
        Returns:
        role descriptor