org.openxri.resolve
Class TrustType
java.lang.Object
org.openxri.resolve.TrustType
- All Implemented Interfaces:
- java.io.Serializable
public class TrustType
- extends java.lang.Object
- implements java.io.Serializable
- Author:
- wtan
- See Also:
- Serialized Form
Constructor Summary |
TrustType()
Constructor. |
TrustType(java.lang.String type)
Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TRUST_NONE
public static final java.lang.String TRUST_NONE
- See Also:
- Constant Field Values
TRUST_SAML
public static final java.lang.String TRUST_SAML
- See Also:
- Constant Field Values
TRUST_HTTPS
public static final java.lang.String TRUST_HTTPS
- See Also:
- Constant Field Values
TRUST_SAML_HTTPS
public static final java.lang.String TRUST_SAML_HTTPS
- See Also:
- Constant Field Values
TRUST
public static final java.lang.String TRUST
- See Also:
- Constant Field Values
type
protected java.lang.String type
TrustType
public TrustType()
- Constructor. Creates a TrustType
- Parameters:
type
-
TrustType
public TrustType(java.lang.String type)
throws IllegalTrustTypeException
- Constructor. Creates a TrustType
- Parameters:
type
-
- Throws:
IllegalTrustTypeException
getType
public java.lang.String getType()
- Returns:
- Returns the type as a String.
getParameterPair
public java.lang.String getParameterPair()
- Returns:
- Returns a String representation of the parameter name value pair.
setParameterPair
public void setParameterPair(boolean isHttps,
boolean isSaml)
setType
public void setType(java.lang.String type)
throws IllegalTrustTypeException
- Parameters:
type
- The type to set.
- Throws:
IllegalTrustTypeException
isHTTPS
public boolean isHTTPS()
- Returns:
- Returns
true
if the type is https
or saml+https
, false
otherwise.
isSAML
public boolean isSAML()
- Returns:
- Returns
true
if the type is saml
or saml+https
, false
otherwise.
equals
public boolean equals(java.lang.String trustType)
- Compares with a String representation of the trust type.
- Parameters:
trustType
-
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2005-2012. All Rights Reserved.