|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kth.pdc.grid.utility.AssertionGenerator
public class AssertionGenerator
Generates a SAML Assertion
| Constructor Summary | |
|---|---|
AssertionGenerator()
Constructor |
|
| Method Summary | |
|---|---|
org.opensaml.SAMLAuthenticationStatement |
createAuthStat(org.opensaml.SAMLSubject userSubject,
Date time)
|
org.opensaml.SAMLSubject |
createSubject(String realmName,
String userName,
PublicKey subjectpk)
|
int |
getLifetime()
Get the life time |
org.opensaml.SAMLAssertion |
makeAssertion(String realmName,
String userName,
Date maxTime,
String issuer,
byte[] inUserCert,
byte[] inUserKey,
String pwd,
PublicKey subjectpk)
Creates a SAML Assertion from the specified User, signed with the key material given as parameters if any |
void |
setLifetime(int hours)
Set the life time |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AssertionGenerator()
| Method Detail |
|---|
public void setLifetime(int hours)
hours - life time of the SAML Assertion (Should be > 0)public int getLifetime()
hours - life time of the SAML Assertion
public org.opensaml.SAMLAssertion makeAssertion(String realmName,
String userName,
Date maxTime,
String issuer,
byte[] inUserCert,
byte[] inUserKey,
String pwd,
PublicKey subjectpk)
realmName - Kerberos Domain NameuserName - User Kerberos NamemaxTime - Time after that the assertion must not be validissuer - Issuer identifierinUserCert - Issuer certificate (if null it is not included in the assertion)inUserKey - Issuer privateKey (if null the Assertion is not signed).
It has to be a RSA private Key.pwd - Issuer password
public org.opensaml.SAMLSubject createSubject(String realmName,
String userName,
PublicKey subjectpk)
public org.opensaml.SAMLAuthenticationStatement createAuthStat(org.opensaml.SAMLSubject userSubject,
Date time)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||