|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.saml.SAMLMetaInfo
public class SAMLMetaInfo
Field Summary | |
---|---|
static int |
ENCRYPTEDKEYPAIR
|
static int |
INTERACTIVE
|
static int |
KEYPAIR
|
static int |
KEYSTORE
|
static int |
PORT
|
static int |
PROGRAMMABLE
|
static java.lang.String |
PROTOCOL_NAME
|
static int |
PROXY
|
static int |
SELF_QUERY
|
static boolean |
SIGN_ASSERTION
|
static boolean |
SIGN_REQUEST
|
static int |
THIRD_PARTY_QUERY
|
Constructor Summary | |
---|---|
SAMLMetaInfo()
Creates a new instance of SAMLMetaInfo |
|
SAMLMetaInfo(java.lang.String configFileName)
to construct a SAMLMetaInfo object with a configuration file. |
Method Summary | |
---|---|
java.lang.String[] |
getAttributeNames()
this method returns a set of attribute names, which should be included in a query |
int |
getAuthnMethod()
this method returns the type of authentication of the SAML client. |
java.lang.String |
getFilePath()
this method returns the file path of the SAML web service |
java.lang.String |
getHost()
this method returns the host of the SAML web service |
int |
getLoginMethod()
this method returns how does the client log in. |
int |
getPort()
this method returns the port of the SAML web service |
java.lang.String |
getProtocol()
this method returns the protocol name, which the SAML web service is using |
int |
getQueryType()
this method returns the query type. |
boolean |
isSignedAssertion()
this method returns true if the query is asking a signed assertion. |
boolean |
isSignedRequest()
this method returns true if the query itself needs to be signed. |
void |
load(java.lang.String fileName)
this method is used to load a config file for setting values to this object |
void |
setAttributeNames(java.lang.String[] names)
this method is used to set a set of attribute names, for which the attribute query is. |
void |
setAuthnMethod(int type)
this method is used to set the way of the client authenticates to the SAML web service |
void |
setFilePath(java.lang.String path)
this method is used to set the file path of the SAML web service |
void |
setHost(java.lang.String hostIn)
this method is used to set the host of the SAML web service |
void |
setLoginMethod(int type)
this method is used to set the way of the client logs in |
void |
setPort(int portNum)
this method is used to set the port of the SAML web service |
void |
setProtocol(java.lang.String protocolName)
this method is used to set the protocol name of the SAML web service |
void |
setQueryType(int query)
this method is used to set the type of the attribute query |
void |
setSignedAssertion(boolean sign)
this method is used to set the query to whether requesting a signed or unsigned assertion |
void |
setSignedRequest(boolean sign)
this method is used to tell whether or not the request is signed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int SELF_QUERY
public static int THIRD_PARTY_QUERY
public static java.lang.String PROTOCOL_NAME
public static int PORT
public static boolean SIGN_ASSERTION
public static boolean SIGN_REQUEST
public static int KEYSTORE
public static int KEYPAIR
public static int PROXY
public static int ENCRYPTEDKEYPAIR
public static int INTERACTIVE
public static int PROGRAMMABLE
Constructor Detail |
---|
public SAMLMetaInfo()
public SAMLMetaInfo(java.lang.String configFileName) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void load(java.lang.String fileName) throws java.lang.Exception
fileName
- is the file path
java.lang.Exception
public java.lang.String[] getAttributeNames()
public java.lang.String getProtocol()
public java.lang.String getHost()
public int getPort()
public java.lang.String getFilePath()
public int getQueryType()
public boolean isSignedAssertion()
public boolean isSignedRequest()
public int getAuthnMethod()
public int getLoginMethod()
public void setAttributeNames(java.lang.String[] names)
names
- is an array of namespublic void setProtocol(java.lang.String protocolName)
protocolName
- is the protocol namepublic void setHost(java.lang.String hostIn)
hostIn
- is the host namepublic void setFilePath(java.lang.String path)
path
- is the file pathpublic void setPort(int portNum)
portNum
- is the port numberpublic void setQueryType(int query)
query
- is query type
SELF_QUERY = 1;
THIRD_PARTY_QUERY = 2;public void setSignedAssertion(boolean sign)
sign
- is true if requesting a signed assertion; otherwise an unsigned assertionpublic void setSignedRequest(boolean sign)
sign
- is true if the request needs to be signed; otherwise not to sign the requestpublic void setAuthnMethod(int type) throws java.lang.Exception
type
- is a int value, which tells what files is used to authenticate the client
KEYSTORE = 3;
KEYPAIR = 4;
PROXY = 5;
ENCRYPTEDKEYPAIR = 6;
java.lang.Exception
public void setLoginMethod(int type) throws java.lang.Exception
type
- is a int value, which tells whether it logs in interactively or programmably
INTERACTIVE = 7;
PROGRAMMABLE = 8;
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |