org.opensaml.common
Class SAMLVersion

java.lang.Object
  extended by org.opensaml.common.SAMLVersion

public final class SAMLVersion
extends java.lang.Object

A type safe SAML version enumeration.


Field Summary
static SAMLVersion VERSION_10
          SAML version 1.0.
static SAMLVersion VERSION_11
          SAML Version 1.1.
static SAMLVersion VERSION_20
          SAML Version 2.0.
 
Method Summary
 int getMajorVersion()
          Gets the major version of the SAML version.
 int getMinorVersion()
          Gets the minor version of the SAML version.
 java.lang.String toString()
          
static SAMLVersion valueOf(int majorVersion, int minorVersion)
          Gets the SAMLVersion given the major and minor version number.
static SAMLVersion valueOf(java.lang.String version)
          Gets the SAMLVersion for a given version string, such as "2.0".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION_10

public static final SAMLVersion VERSION_10
SAML version 1.0.


VERSION_11

public static final SAMLVersion VERSION_11
SAML Version 1.1.


VERSION_20

public static final SAMLVersion VERSION_20
SAML Version 2.0.

Method Detail

valueOf

public static final SAMLVersion valueOf(int majorVersion,
                                        int minorVersion)
Gets the SAMLVersion given the major and minor version number.

Parameters:
majorVersion - major version number
minorVersion - minor version number
Returns:
the SAMLVersion

valueOf

public static final SAMLVersion valueOf(java.lang.String version)
Gets the SAMLVersion for a given version string, such as "2.0".

Parameters:
version - SAML version string
Returns:
SAMLVersion for the given string

getMajorVersion

public int getMajorVersion()
Gets the major version of the SAML version.

Returns:
the major version of the SAML version

getMinorVersion

public int getMinorVersion()
Gets the minor version of the SAML version.

Returns:
the minor version of the SAML version

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2006-2012 Internet2. All Rights Reserved.