Class TransientNameIDGenerator
java.lang.Object
se.swedenconnect.spring.saml.idp.attributes.nameid.AbstractNameIDGenerator
se.swedenconnect.spring.saml.idp.attributes.nameid.TransientNameIDGenerator
- All Implemented Interfaces:
Serializable
,NameIDGenerator
A
NameIDGenerator
for generaring transient NameID
s.- Author:
- Martin Lindström
- See Also:
-
Constructor Summary
ConstructorDescriptionTransientNameIDGenerator
(String nameQualifier) Constructor.TransientNameIDGenerator
(String nameQualifier, String spNameQualifier) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returnsurn:oasis:names:tc:SAML:2.0:nameid-format:transient
.protected String
getIdentifier
(Saml2UserAuthentication authentication) Gets theNameID
identifier to use.Methods inherited from class se.swedenconnect.spring.saml.idp.attributes.nameid.AbstractNameIDGenerator
getNameID, getNameQualifier, getSpNameQualifier
-
Constructor Details
-
TransientNameIDGenerator
Constructor.- Parameters:
nameQualifier
- the name qualifier, usually the IdP entityID
-
TransientNameIDGenerator
Constructor.- Parameters:
nameQualifier
- the name qualifier, usually the IdP entityIDspNameQualifier
- the SP name qualifier
-
-
Method Details
-
getIdentifier
Gets theNameID
identifier to use.- Specified by:
getIdentifier
in classAbstractNameIDGenerator
- Parameters:
authentication
- the user authentication object- Returns:
- an identifier string (never
null
)
-
getFormat
Returnsurn:oasis:names:tc:SAML:2.0:nameid-format:transient
.- Specified by:
getFormat
in classAbstractNameIDGenerator
- Returns:
- the format URI
-