@Exported public class GSSUtil extends Object
Constructor and Description |
---|
GSSUtil() |
Modifier and Type | Method and Description |
---|---|
static Subject |
createSubject(GSSName principals,
GSSCredential credentials)
Use this method to convert a GSSName and GSSCredential into a
Subject.
|
public static Subject createSubject(GSSName principals, GSSCredential credentials)
principals
- a GSSName containing one or more mechanism specific
representations of the same entity. These mechanism specific
representations will be populated in the returned Subject's principal
set.credentials
- a GSSCredential containing one or more mechanism
specific credentials for the same entity. These mechanism specific
credentials will be populated in the returned Subject's private
credential set. Passing in a value of null will imply that the private
credential set should be left empty.
Copyright © 2000, 2015, Oracle and/or its affiliates. All rights reserved.