public class NameIDInfo extends Object
NameIDInfo
represents the user account
federation information stored in the repository.
The name of attribute name is sun-fm-saml2-nameid-info.
This multiple-valued attribute is used to store all information
related to the name identifier, such as IDP, SP entity id, role, etc.
Value format for this attribute:
Constructor and Description |
---|
NameIDInfo(String hostEntityID,
String remoteEntityID,
NameID nameID,
String hostEntityRole,
boolean isAffiliation)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getFormat()
Returns the value of the
NameID format. |
String |
getHostEntityID()
Returns the
EntityID of the hosted provider. |
String |
getHostEntityRole()
Returns the role of the host entity.
|
NameID |
getNameID()
Returns the
NameID object. |
NameIDInfoKey |
getNameIDInfoKey()
Returns the
NameIDInfoKey |
String |
getNameIDValue()
Returns the
NameID value. |
String |
getNameQualifier()
Returns the value of the
NameQualifier . |
String |
getRemoteEntityID()
Returns the
EntityID of the remote provider. |
String |
getSPNameIDValue()
Returns the Service Provider provided
NameID value. |
String |
getSPNameQualifier()
Returns the Service Provider provided
NameID 's
Name Qualifier. |
boolean |
isAffiliation()
Checks if this is an affiliation based federation.
|
static NameIDInfo |
parse(String info)
Returns the
NameIDInfo by parsing the string value. |
String |
toValueString()
Returns the account federation information key value string that is
stored in the repository.
|
public NameIDInfo(String hostEntityID, String remoteEntityID, NameID nameID, String hostEntityRole, boolean isAffiliation) throws SAML2Exception
hostEntityID
- EntityID
of the hosted entity.remoteEntityID
- EntityID
of the remote entity.nameID
- NameID
object.hostEntityRole
- the role of the hosted entity.isAffiliation
- true if this account federation information
is an affilation based federation.SAML2Exception
- if any of the parameter values are null.public NameID getNameID()
NameID
object.NameID
object.public NameIDInfoKey getNameIDInfoKey() throws SAML2Exception
NameIDInfoKey
NameID
object.SAML2Exception
- if any failure.public String getNameIDValue()
NameID
value.NameID
.public String getNameQualifier()
NameQualifier
.NameQualifier
.public String getFormat()
NameID
format.NameID
format.public String getSPNameIDValue()
NameID
value.NameID
.public String getSPNameQualifier()
NameID
's
Name Qualifier.NameID
's
Name Qualifier.public String getHostEntityID()
EntityID
of the hosted provider.EntityID
of the hosted provider.public String getRemoteEntityID()
EntityID
of the remote provider.EntityID
of the remote provider.public String getHostEntityRole()
public boolean isAffiliation()
public String toValueString()
NameIDInfo
that is
stored in the repository.public static NameIDInfo parse(String info) throws SAML2Exception
NameIDInfo
by parsing the string value.NameIDInfo
SAML2Exception
- if the parsing fails.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.