Skip to content

Package: SpnegoTokenGenerator

SpnegoTokenGenerator

Coverage

1: /*
2: * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
3: * Copyright (c) 2010-2015 Sonatype, Inc. All rights reserved.
4: *
5: * This program is licensed to you under the Apache License Version 2.0,
6: * and you may not use this file except in compliance with the Apache License Version 2.0.
7: * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
8: *
9: * Unless required by applicable law or agreed to in writing,
10: * software distributed under the Apache License Version 2.0 is distributed on an
11: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
13: */
14:
15: /*
16: * ====================================================================
17: *
18: * Licensed to the Apache Software Foundation (ASF) under one or more
19: * contributor license agreements. See the NOTICE file distributed with
20: * this work for additional information regarding copyright ownership.
21: * The ASF licenses this file to You under the Apache License, Version 2.0
22: * (the "License"); you may not use this file except in compliance with
23: * the License. You may obtain a copy of the License at
24: *
25: * http://www.apache.org/licenses/LICENSE-2.0
26: *
27: * Unless required by applicable law or agreed to in writing, software
28: * distributed under the License is distributed on an "AS IS" BASIS,
29: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
30: * See the License for the specific language governing permissions and
31: * limitations under the License.
32: * ====================================================================
33: *
34: * This software consists of voluntary contributions made by many
35: * individuals on behalf of the Apache Software Foundation. For more
36: * information on the Apache Software Foundation, please see
37: * <http://www.apache.org/>.
38: *
39: */
40:
41: package com.ning.http.client.spnego;
42:
43: import java.io.IOException;
44:
45: /**
46: * Abstract SPNEGO token generator. Implementations should take an Kerberos ticket and transform
47: * into a SPNEGO token.
48: * <p/>
49: * Implementations of this interface are expected to be thread-safe.
50: *
51: * @since 4.1
52: */
53: public interface SpnegoTokenGenerator {
54:
55: byte[] generateSpnegoDERObject(byte[] kerberosTicket) throws IOException;
56: }