com.sun.identity.saml.common
Class SAMLSiteID
java.lang.Object
|
+--com.sun.identity.saml.common.SAMLSiteID
- public class SAMLSiteID
- extends java.lang.Object
This class is used to generate SAML Site ID
Method Summary |
static java.lang.String |
generateID()
Generates an ID String with length of SAMLConstants.ID_LENGTH. |
static java.lang.String |
generateSourceID(java.lang.String siteURL)
Generate SAML site ID based on siteURL, this will return a
Base64 encoded SHA-1 digest. |
static void |
main(java.lang.String[] args)
This is used to get site ID based on the host name
This method will print out site ID to the standard output |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
generateID
public static java.lang.String generateID()
- Generates an ID String with length of SAMLConstants.ID_LENGTH.
- Returns:
- string the ID String; or null if it fails.
generateSourceID
public static java.lang.String generateSourceID(java.lang.String siteURL)
- Generate SAML site ID based on siteURL, this will return a
Base64 encoded SHA-1 digest.
- Parameters:
siteURL
- String for example : http://host.sun.com:58080- Returns:
- Base64 encoded site ID
main
public static void main(java.lang.String[] args)
- This is used to get site ID based on the host name
This method will print out site ID to the standard output
- Parameters:
args[0]
- host name