com.sun.identity.saml.common
クラス SAMLSiteID

java.lang.Object
  上位を拡張 com.sun.identity.saml.common.SAMLSiteID

public class SAMLSiteID
extends Object

This class is used to generate SAML Site ID.


メソッドの概要
static String generateID()
          Returns an ID String with length of SAMLConstants.ID_LENGTH.
static String generateSourceID(String siteURL)
          Returns SAML site ID based on siteURL, this will return a Base64 encoded SHA-1 digest.
static void main(String[] args)
          Obtains site ID based on the host name.
 

メソッドの詳細

generateID

public static String generateID()
Returns an ID String with length of SAMLConstants.ID_LENGTH.

戻り値:
ID String or null if it fails.

generateSourceID

public static String generateSourceID(String siteURL)
Returns SAML site ID based on siteURL, this will return a Base64 encoded SHA-1 digest.

パラメータ:
siteURL - site URL for example: http://host.sun.com:58080.
戻り値:
Base64 encoded site ID

main

public static void main(String[] args)
Obtains site ID based on the host name. This method will print out site ID to the standard output.

パラメータ:
args - host name