| Modifier and Type | Field and Description |
|---|---|
| private final GSSCaller | |
| pack-priv GSSLibStub |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public GSSCredentialSpi | getCredentialElement(GSSNameSpi name, int initLifetime, int acceptLifetime, int usage)
Implements sun. Creates a credential element for this mechanism to be included as part of a GSSCredential implementation. |
| private GSSCredElement | |
| public GSSContextSpi | getMechanismContext(GSSNameSpi peer, GSSCredentialSpi myCred, int lifetime)
Implements sun. Creates a security context for this mechanism so that it can be used on the context initiator's side. |
| public GSSContextSpi | getMechanismContext(GSSCredentialSpi myCred)
Implements sun. Creates a security context for this mechanism so that it can be used on the context acceptor's side. |
| public GSSContextSpi | getMechanismContext(byte[] exportedContext)
Implements sun. Creates a security context from a previously exported (serialized) security context. |
| public Oid | getMechanismOid()
Implements sun. Returns the Oid of the mechanism that this factory supports. |
| public GSSNameSpi | getNameElement(String nameStr, Oid nameType)
Implements sun. Creates a name element for this mechanism to be included as part of a GSSName implementation. |
| public GSSNameSpi | getNameElement(byte[] name, Oid nameType)
Implements sun. This is a variation of the factory method that accepts a String for the characters that make up the name. |
| public Oid[] | getNameTypes()
Implements sun. Returns the GSS-API nametypes that this mechanism can support. |
| public Provider | getProvider()
Implements sun. Returns the provider that this factory came from. |
| public void |
| caller | back to summary |
|---|---|
| private final GSSCaller caller | |
| cStub | back to summary |
|---|---|
| pack-priv GSSLibStub cStub | |
| NativeGSSFactory | back to summary |
|---|---|
| public NativeGSSFactory(GSSCaller caller) | |
| getCredentialElement | back to summary |
|---|---|
| public GSSCredentialSpi getCredentialElement(GSSNameSpi name, int initLifetime, int acceptLifetime, int usage) throws GSSException Implements sun. Doc from sun. Creates a credential element for this mechanism to be included as part of a GSSCredential implementation. A GSSCredential is conceptually a container class of several credential elements from different mechanisms. A GSS-API credential can be used either for initiating GSS security contexts or for accepting them. This method also accepts parameters that indicate what usage is expected and how long the life of the credential should be. It is not necessary that the mechanism honor the request for lifetime. An application will always query an acquired GSSCredential to determine what lifetime it got back. Not all mechanisms support the concept of one credential element that can be used for both initiating and accepting a context. In the event that an application requests usage INITIATE_AND_ACCEPT for a credential from such a mechanism, the GSS framework will need to obtain two different credential elements from the mechanism, one that will have usage INITIATE_ONLY and another that will have usage ACCEPT_ONLY. The mechanism will help the GSS-API realize this by returning a credential element with usage INITIATE_ONLY or ACCEPT_ONLY prompting it to make another call to getCredentialElement, this time with the other usage mode. The mechanism indicates the missing mode by returning a 0 lifetime for it.
| |
| getCredFromSubject | back to summary |
|---|---|
| private GSSCredElement getCredFromSubject(GSSNameElement name, boolean initiate) throws GSSException | |
| getMechanismContext | back to summary |
|---|---|
| public GSSContextSpi getMechanismContext(GSSNameSpi peer, GSSCredentialSpi myCred, int lifetime) throws GSSException Implements sun. Doc from sun. Creates a security context for this mechanism so that it can be used on the context initiator's side.
| |
| getMechanismContext | back to summary |
|---|---|
| public GSSContextSpi getMechanismContext(GSSCredentialSpi myCred) throws GSSException Implements sun. Doc from sun. Creates a security context for this mechanism so that it can be used on the context acceptor's side.
| |
| getMechanismContext | back to summary |
|---|---|
| public GSSContextSpi getMechanismContext(byte[] exportedContext) throws GSSException Implements sun. Doc from sun. Creates a security context from a previously exported (serialized) security context. Note that this is different from Java serialization and is defined at a mechanism level to interoperate over the wire with non-Java implementations. Either the initiator or the acceptor can export and then import a security context. Implementations of mechanism contexts are not required to implement exporting and importing.
| |
| getMechanismOid | back to summary |
|---|---|
| public Oid getMechanismOid() Implements sun. Doc from sun. Returns the Oid of the mechanism that this factory supports. | |
| getNameElement | back to summary |
|---|---|
| public GSSNameSpi getNameElement(String nameStr, Oid nameType) throws GSSException Implements sun. Doc from sun. Creates a name element for this mechanism to be included as part of a GSSName implementation. A GSSName is conceptually a container class of several name elements from different mechanisms. A GSSName can be created either with a String or with a sequence of bytes. This factory method accepts the name in a String. Such a name can generally be assumed to be printable and may be returned from the name element's toString() method.
| |
| getNameElement | back to summary |
|---|---|
| public GSSNameSpi getNameElement(byte[] name, Oid nameType) throws GSSException Implements sun. Doc from sun. This is a variation of the factory method that accepts a String for the characters that make up the name. Usually the String characters are assumed to be printable. The bytes passed in to this method have to be converted to characters using some encoding of the mechanism's choice. It is recommended that UTF-8 be used. (Note that UTF-8 preserves the encoding for 7-bit ASCII characters.) An exported name will generally be passed in using this method.
| |
| getNameTypes | back to summary |
|---|---|
| public Oid[] getNameTypes() throws GSSException Implements sun. Doc from sun. Returns the GSS-API nametypes that this mechanism can support. Having this method helps the GSS-Framework decide quickly if a certain mechanism can be skipped when importing a name. | |
| getProvider | back to summary |
|---|---|
| public Provider getProvider() Implements sun. Doc from sun. Returns the provider that this factory came from. | |
| setMech | back to summary |
|---|---|
| public void setMech(Oid mech) throws GSSException | |