com.sun.identity.saml.common
Class SAMLUtils

java.lang.Object
  extended bycom.sun.identity.saml.common.SAMLUtils

public class SAMLUtils
extends java.lang.Object

This class contain some convenient methods, such as getDecodedSourceIDString.


Method Summary
static java.lang.String getDecodedSourceIDString(java.lang.String encodedID)
          Decodes the Base64 encoded sourceid and returns a String of the raw-byte source id.
static java.lang.String getUserName(java.lang.String fullDN)
          Gets first RDN value of a DN.
static java.lang.String getXMLSignatureAlgorithm()
          Returns XML Signature Algorithm from AMConfig.properties.
static java.util.Properties loadProperties(java.io.File filehandle)
          Load properties from the attribute file handle.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDecodedSourceIDString

public static java.lang.String getDecodedSourceIDString(java.lang.String encodedID)
Decodes the Base64 encoded sourceid and returns a String of the raw-byte source id.

Parameters:
encodedID - A String representing the Base64 encoded source id.
Returns:
A String representing the raw byte source id.

loadProperties

public static java.util.Properties loadProperties(java.io.File filehandle)
                                           throws SAMLException
Load properties from the attribute file handle.

Parameters:
filehandle - File where properties are to be loaded from
Returns:
Properties read from the file
Throws:
SAMLException - if an error occured.

getUserName

public static java.lang.String getUserName(java.lang.String fullDN)
Gets first RDN value of a DN.

Parameters:
fullDN - DN in string format
Returns:
first RDN value of the DN.

getXMLSignatureAlgorithm

public static java.lang.String getXMLSignatureAlgorithm()
Returns XML Signature Algorithm from AMConfig.properties. If property com.sun.identity.saml.xmlsig.xmlSigAlgorithm is not defined or value is empty, default value http://www.w3.org/2000/09/xmldsig#rsa-sha1 is used.



Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.