FileDocCategorySizeDatePackage
SignatureKeyCallback.javaAPI DocGlassfish v2 API3755Fri May 04 22:35:44 BST 2007com.sun.enterprise.security.jauth.callback

SignatureKeyCallback

public class SignatureKeyCallback extends Object implements Callback
Callback for Signing Key.
version
1.8, 03/03/04

Fields Summary
private PrivateKey
key
private X500Principal
authority
private Certificate[]
chain
Constructors Summary
public SignatureKeyCallback(X500Principal authority)
Constructs this SignatureKeyCallback with an authority.

Both a PrivateKey and corresponding certificate chain will be returned. The authority input parameter specifies the X500Principal name of the root CA certificate returned in the chain. An authority does not have to be specified.

param
authority the X500Principal name of the root CA certificate returned in the requested chain, or null

	this.authority = authority;
    
Methods Summary
public javax.security.auth.x500.X500PrincipalgetAuthority()
Get the authority.

return
the authority, or null

	return authority;
    
public java.security.cert.Certificate[]getChain()
Get the certificate chain.

return
the certificate chain

	return chain;
    
public java.security.PrivateKeygetKey()
Get the requested signing key.

return
the signing key

	return key;
    
public voidsetKey(java.security.PrivateKey key, java.security.cert.Certificate[] chain)
Set the requested signing key.

param
key the signing key
param
chain the corresponding certificate chain

	this.key = key;
	this.chain = chain;