1 23 24 package com.sun.enterprise.security.jauth.callback; 25 26 import java.security.KeyStore ; 27 import java.security.PrivateKey ; 28 import javax.crypto.SecretKey; 29 import java.security.cert.Certificate ; 30 import javax.security.auth.callback.Callback ; 31 import javax.security.auth.x500.X500Principal ; 32 33 38 public class SignatureKeyCallback implements Callback { 39 40 private PrivateKey key; 41 private X500Principal authority; 42 private Certificate [] chain; 43 44 57 public SignatureKeyCallback(X500Principal authority) { 58 this.authority = authority; 59 } 60 61 66 public X500Principal getAuthority() { 67 return authority; 68 } 69 70 76 public void setKey(PrivateKey key, Certificate [] chain) { 77 this.key = key; 78 this.chain = chain; 79 } 80 81 86 public PrivateKey getKey() { 87 return key; 88 } 89 90 95 public Certificate [] getChain() { 96 return chain; 97 } 98 } 99 | Popular Tags |