Package com.sun.identity.saml2.common
Class NameIDInfoKey
- java.lang.Object
-
- com.sun.identity.saml2.common.NameIDInfoKey
-
public class NameIDInfoKey extends Object
This classNameIDInfoKeyrepresents the user account federation information key: sun-fm-saml2-nameid-info-key. This multiple-valued attribute is used for searching purpose, in case of ldap datastore, an equality index need to be created for this attribute for better search performance. Value format for this attribute:| | where: : entity id for this hosted entity : entity id for the remote entity : name identifier for the IDP for example: http://www.sp1.com|http://www.idp1.com|vPQyHXLnSWLAVh2BoI3gdUrhanC1
-
-
Constructor Summary
Constructors Constructor Description NameIDInfoKey(String nameIDValue, String hostEntityID, String remoteEntityID)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHostEntityID()Returns theEntityIDof the hosted provider.StringgetNameIDValue()Returns theNameIDvalue.StringgetRemoteEntityID()Returns theEntityIDof the remote provider.static NameIDInfoKeyparse(String infoKey)Returns theNameIDInfoKeyby parsing the string value.StringtoValueString()Returns the account federation information key value string that is stored in the repository.
-
-
-
Constructor Detail
-
NameIDInfoKey
public NameIDInfoKey(String nameIDValue, String hostEntityID, String remoteEntityID) throws SAML2Exception
Constructor- Parameters:
nameIDValue- randomly generated name identifier value.hostEntityID-EntityIDof the hosted provider.remoteEntityID-EntityIDof the remote provider.- Throws:
SAML2Exception- if any of the parameter values are null.
-
-
Method Detail
-
getNameIDValue
public String getNameIDValue()
Returns theNameIDvalue.- Returns:
- the value of the
NameID.
-
getHostEntityID
public String getHostEntityID()
Returns theEntityIDof the hosted provider.- Returns:
- the
EntityIDof the hosted provider.
-
getRemoteEntityID
public String getRemoteEntityID()
Returns theEntityIDof the remote provider.- Returns:
- the
EntityIDof the remote provider.
-
toValueString
public String toValueString()
Returns the account federation information key value string that is stored in the repository.- Returns:
- the value of the
NameIDInfoKeythat is stored in the repository.
-
parse
public static NameIDInfoKey parse(String infoKey) throws SAML2Exception
Returns theNameIDInfoKeyby parsing the string value.- Returns:
- the
NameIDInfoKey - Throws:
SAML2Exception- if the parsing fails.
-
-