public class SAMLSiteID extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static String generateID()
SAMLConstants.ID_LENGTH
.public static String generateSourceID(String siteURL)
siteURL
, this will return a
Base64
encoded SHA-1
digest.siteURL
- site URL for example:
http://host.sun.com:58080
.public static void main(String[] args)
args
- host nameCopyright © 2010-2018, ForgeRock All Rights Reserved.