1 23 24 package com.sun.enterprise.security.jauth.callback; 25 26 import java.math.BigInteger ; 27 import java.security.Principal ; 28 import javax.crypto.SecretKey; 29 import javax.security.auth.callback.Callback ; 30 31 36 public class SecretKeyCallback implements Callback { 37 38 private Request request; 39 private SecretKey key; 40 41 44 public static interface Request { }; 45 46 49 public static class AliasRequest implements Request { 50 private String alias; 51 52 63 public AliasRequest(String alias) { 64 this.alias = alias; 65 } 66 67 72 public String getAlias() { 73 return alias; 74 } 75 } 76 77 88 public SecretKeyCallback(Request request) { 89 this.request = request; 90 } 91 92 99 public Request getRequest() { 100 return request; 101 } 102 103 108 public void setKey(SecretKey key) { 109 this.key = key; 110 } 111 112 117 public SecretKey getKey() { 118 return key; 119 } 120 } 121 | Popular Tags |