01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.harmony.auth.jgss.kerberos.toolbox;
19:
20: import javax.crypto.SecretKey;
21: import javax.security.auth.kerberos.KerberosTicket;
22:
23: // TODO The Request for encoding includes TGS while decoding includes
24: // SessionKey. Maybe more information, for example, peer Principal is required
25: // in decoding.
26: public class KerberosApplicationRequest {
27: private long seqNum;
28:
29: private boolean[] options;
30:
31: private KerberosTicket tgs;
32:
33: private SecretKey sessionKey;
34:
35: public KerberosApplicationRequest(long seqNum, boolean[] options,
36: KerberosTicket tgs, SecretKey sessionKey) {
37: this .seqNum = seqNum;
38: this .options = options;
39: this .tgs = tgs;
40: this .sessionKey = sessionKey;
41: }
42:
43: public long getSeqNum() {
44: return seqNum;
45: }
46:
47: public boolean[] getOptions() {
48: return options;
49: }
50:
51: public KerberosTicket getTGS() {
52: return tgs;
53: }
54:
55: public SecretKey getSessionKey() {
56: return sessionKey;
57: }
58: }
|