|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.delegation.DelegationUtil
| Field Summary | |
private static org.globus.util.I18n |
i18n
|
(package private) static org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
DelegationUtil()
|
|
| Method Summary | |
static org.apache.axis.message.addressing.EndpointReferenceType |
delegate(java.lang.String delegationServiceUrl,
org.globus.gsi.GlobusCredential issuingCred,
java.security.cert.X509Certificate certificate,
boolean fullDelegation,
ClientSecurityDescriptor desc)
Store the request token (delegated credential) on the delegation service. |
static org.apache.axis.message.addressing.EndpointReferenceType |
delegate(java.lang.String delegationServiceUrl,
org.globus.gsi.GlobusCredential issuingCred,
java.security.cert.X509Certificate certificate,
int lifetime,
boolean fullDelegation,
ClientSecurityDescriptor desc)
Store the request token (delegated credential) on the delegation service. |
static java.security.cert.X509Certificate[] |
getCertificateChainRP(org.apache.axis.message.addressing.EndpointReferenceType epr,
ClientSecurityDescriptor desc)
Retrieve certificate chain from resource property on Delegation Factory Service. |
static java.security.cert.X509Certificate[] |
getCertificateChainRP(org.apache.axis.message.addressing.EndpointReferenceType epr,
javax.xml.namespace.QName qName,
java.lang.Class rpClass,
ClientSecurityDescriptor desc)
Retrieve certificate chain from resource property on Delegation Factory Service. |
static DelegationResource |
getDelegationResource(org.apache.axis.message.addressing.EndpointReferenceType epr)
Return the delegation resource referred to by EPR. |
private static org.apache.ws.security.message.token.PKIPathSecurity |
getPKIToken(java.security.cert.X509Certificate[] certChain,
boolean reverse)
|
static org.apache.ws.security.message.token.PKIPathSecurity |
getServiceCertAsToken(java.lang.String servicePath,
boolean useDefault)
Create a token containing service's public certificate (to expose as Resource Property) |
private static org.globus.gsi.GlobusCredential |
getServiceCredential(java.lang.String servicePath,
boolean useDefault)
|
static java.security.PrivateKey |
getServicePrivateKey(java.lang.String servicePath,
boolean useDefault)
Get private key of the service's credential |
static RequestSecurityTokenType |
getTokenToDelegate(org.globus.gsi.GlobusCredential issuingCred,
java.security.cert.X509Certificate certificate,
int lifetime,
boolean fullDelegation)
Create a new proxy with said lifetime, using the public key of certificate and signed by issuing credential. |
static RequestSecurityTokenType |
getTokenToDelegate(java.security.cert.X509Certificate[] issuerCertificateChain,
java.security.PrivateKey issuerKey,
java.security.PublicKey publicKey,
int lifetime,
boolean fullDelegation)
Create a new proxy with said lifetime, signed by issuing credential. |
static void |
refresh(org.globus.gsi.GlobusCredential issuingCred,
java.security.cert.X509Certificate certToSign,
int lifetime,
boolean fullDelegation,
ClientSecurityDescriptor desc,
org.apache.axis.message.addressing.EndpointReferenceType epr)
Refresh credential referred to by EPR. |
static void |
registerDelegationListener(org.apache.axis.message.addressing.EndpointReferenceType epr,
DelegationListener listener)
Register the listener object with deleagtion resource represented by EPR. |
static void |
registerDelegationListener(org.apache.axis.message.addressing.EndpointReferenceType epr,
DelegationListener listener,
javax.security.auth.Subject subject)
|
static void |
removeDelegationListener(org.apache.axis.message.addressing.EndpointReferenceType epr,
java.lang.String listenerId)
Remove the listener object with said id on delegation resoruce represented by EPR. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
| Constructor Detail |
public DelegationUtil()
| Method Detail |
public static org.apache.ws.security.message.token.PKIPathSecurity getServiceCertAsToken(java.lang.String servicePath,
boolean useDefault)
throws DelegationException
servicePath - Service path name used to store properties in JNDIuseDefault - Indicates whether default credentials should be used if
service is no configured with credential.
DelegationException
public static java.security.PrivateKey getServicePrivateKey(java.lang.String servicePath,
boolean useDefault)
throws DelegationException
servicePath - Service path name used to store properties in JNDIuseDefault - Indicates whether default credentials should be used if
service is no configured with credential.
DelegationException
public static void registerDelegationListener(org.apache.axis.message.addressing.EndpointReferenceType epr,
DelegationListener listener)
throws DelegationException
epr - ERP of the delegated credentiallistener - Listener object
DelegationException
public static void registerDelegationListener(org.apache.axis.message.addressing.EndpointReferenceType epr,
DelegationListener listener,
javax.security.auth.Subject subject)
throws DelegationException
DelegationException
public static void removeDelegationListener(org.apache.axis.message.addressing.EndpointReferenceType epr,
java.lang.String listenerId)
throws DelegationException
epr - ERP of the delagated credentiallistenerId - Listener id
DelegationException
public static DelegationResource getDelegationResource(org.apache.axis.message.addressing.EndpointReferenceType epr)
throws DelegationException
epr - ERP of the delagated credential
DelegationException
public static RequestSecurityTokenType getTokenToDelegate(org.globus.gsi.GlobusCredential issuingCred,
java.security.cert.X509Certificate certificate,
int lifetime,
boolean fullDelegation)
throws DelegationException
issuingCred - Credential issuing the proxycertificate - The public certificate of the new proxylifetime - Lifetime of the new proxy in secondsfullDelegation - Indicates whether full delegation is required.
DelegationExceptiongetTokenToDelegate(X509Certificate[], PrivateKey,
PublicKey, int, boolean)
public static RequestSecurityTokenType getTokenToDelegate(java.security.cert.X509Certificate[] issuerCertificateChain,
java.security.PrivateKey issuerKey,
java.security.PublicKey publicKey,
int lifetime,
boolean fullDelegation)
throws DelegationException
issuerCertificateChain - First certificate in this chain is used as issuing
certificateissuerKey - New proxy will be signed with this keypublicKey - The public key of the new proxylifetime - Lifetime of the new proxy in secondsfullDelegation - Indicates whether full delegation is required.
DelegationException
public static org.apache.axis.message.addressing.EndpointReferenceType delegate(java.lang.String delegationServiceUrl,
org.globus.gsi.GlobusCredential issuingCred,
java.security.cert.X509Certificate certificate,
boolean fullDelegation,
ClientSecurityDescriptor desc)
throws DelegationException
delegationServiceUrl - Address of delegation serviceissuingCred - Credential issuing the proxycertificate - The public certificate of the new proxyfullDelegation - Indicates whether full delegation is required.desc - Client security descriptor with relevant security properties.
DelegationException
public static org.apache.axis.message.addressing.EndpointReferenceType delegate(java.lang.String delegationServiceUrl,
org.globus.gsi.GlobusCredential issuingCred,
java.security.cert.X509Certificate certificate,
int lifetime,
boolean fullDelegation,
ClientSecurityDescriptor desc)
throws DelegationException
delegationServiceUrl - Address of delegation serviceissuingCred - Credential issuing the proxycertificate - The public certificate of the new proxylifetime - Lifetime of the new proxy in secondsfullDelegation - Indicates whether full delegation is required.desc - Client security descriptor with relevant security properties.
DelegationException
public static void refresh(org.globus.gsi.GlobusCredential issuingCred,
java.security.cert.X509Certificate certToSign,
int lifetime,
boolean fullDelegation,
ClientSecurityDescriptor desc,
org.apache.axis.message.addressing.EndpointReferenceType epr)
throws DelegationException
issuingCred - Credential issuing the proxycertToSign - The public certificate of the new proxylifetime - Lifetime of the new proxy in secondsfullDelegation - Indicates whether full delegation is required.desc - Client security descriptor with relevant security
properties.epr - EPR referring to credential that needs to be replaced.
DelegationException
public static java.security.cert.X509Certificate[] getCertificateChainRP(org.apache.axis.message.addressing.EndpointReferenceType epr,
ClientSecurityDescriptor desc)
throws DelegationException
epr - Endpoint reference to delegation factory servicedesc - Client security descriptor with relevant security
properties.
DelegationException
public static java.security.cert.X509Certificate[] getCertificateChainRP(org.apache.axis.message.addressing.EndpointReferenceType epr,
javax.xml.namespace.QName qName,
java.lang.Class rpClass,
ClientSecurityDescriptor desc)
throws DelegationException
BinarySecurity token.
epr - Endpoint reference to delegation factory serviceqName - QName of the resource propertyrpClass - Class to deserialize it asdesc - Client security descriptor with relevant security
properties.
DelegationException
private static org.globus.gsi.GlobusCredential getServiceCredential(java.lang.String servicePath,
boolean useDefault)
throws DelegationException
DelegationException
private static org.apache.ws.security.message.token.PKIPathSecurity getPKIToken(java.security.cert.X509Certificate[] certChain,
boolean reverse)
throws DelegationException
DelegationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||