MCPcopy Create free account
hub / github.com/crewjam/saml / decryptNameID

Function decryptNameID

encrypted_id.go:23–26  ·  view source on GitHub ↗

decryptNameID decrypts encryptedID, a saml:EncryptedID element, with decrypt, which returns the root element of the plaintext, and returns the saml:NameID it holds. Other identifiers (BaseID, or an EncryptedID that does not hold a NameID) are rejected.

(encryptedID *etree.Element, decrypt func(*etree.Element) (*etree.Element, error))

Source from the content-addressed store, hash-verified

21// saml:NameID it holds. Other identifiers (BaseID, or an EncryptedID that
22// does not hold a NameID) are rejected.
23func decryptNameID(encryptedID *etree.Element, decrypt func(*etree.Element) (*etree.Element, error)) (*NameID, error) {
24 nameID, _, err := decryptIdentifier(encryptedID, decrypt, false)
25 return nameID, err
26}
27
28// decryptIdentifier decrypts encryptedID, a saml:EncryptedID element, with
29// decrypt, which returns the root element of the plaintext. It returns the

Calls 1

decryptIdentifierFunction · 0.85