| 1 |
/* |
| 2 |
* Copyright 1999-2010 University of Chicago |
| 3 |
* |
| 4 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in |
| 5 |
* compliance with the License. You may obtain a copy of the License at |
| 6 |
* |
| 7 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
* |
| 9 |
* Unless required by applicable law or agreed to in writing, software distributed under the License is |
| 10 |
* distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
| 11 |
* express or implied. |
| 12 |
* |
| 13 |
* See the License for the specific language governing permissions and limitations under the License. |
| 14 |
*/ |
| 15 |
package org.globus.gsi.gssapi.auth; |
| 16 |
|
| 17 |
import org.ietf.jgss.GSSException; |
| 18 |
import org.ietf.jgss.GSSName; |
| 19 |
import org.ietf.jgss.GSSCredential; |
| 20 |
|
| 21 |
/** |
| 22 |
* GSSAPI client authorization. |
| 23 |
*/ |
| 24 |
public abstract class GSSAuthorization extends Authorization { |
| 25 |
|
| 26 |
/** |
| 27 |
* Returns expected <code>GSSName</code> used for authorization purposes. |
| 28 |
* Can returns null for self authorization. |
| 29 |
* |
| 30 |
* @param cred credentials used |
| 31 |
* @param host host address of the peer. |
| 32 |
* @exception GSSException if unable to create the name. |
| 33 |
*/ |
| 34 |
public abstract GSSName getExpectedName(GSSCredential cred, String host) |
| 35 |
throws GSSException; |
| 36 |
|
| 37 |
} |