Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.security
Class KeyPairCredential

java.lang.Object
  extended by weblogic.security.KeyPairCredential


public final class KeyPairCredential
extends Object

This class acts as a holder for cryptographic key information. Typically the keypair information is a private key accompanied by the certificate chain for the corresponding public key.


Method Summary
 void dispose()
          Frees all resources associated with this instance of the credential.
protected  void finalize()
          Disposes of this credential.
 Certificate getCertificate()
          The first element of the certificate chain.
 Certificate[] getCertificateChain()
          The certificate chain.
 Key getKey()
          The key.
 boolean isDisposed()
          Specifies whether this instance is disposed.
 String toString()
          A string representation of this object.

 

Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Method Detail

getCertificate

public Certificate getCertificate()
The first element of the certificate chain. Returns null if the certificate chain is null or empty, or if the credential has been disposed via the dispose() method.
Returns:
The first element in the certificate chain
See Also:
KeyPairCredential.dispose()

getCertificateChain

public Certificate[] getCertificateChain()
The certificate chain. Returns null if the credential has been disposed via the dispose() method.
Returns:
The certificate chain
See Also:
KeyPairCredential.dispose()

getKey

public Key getKey()
The key. Returns null if the credential has been disposed via the dispose() method.
Returns:
The key
See Also:
KeyPairCredential.dispose()

dispose

public void dispose()
Frees all resources associated with this instance of the credential.

isDisposed

public boolean isDisposed()
Specifies whether this instance is disposed.
Returns:
true if the credential is already disposed
See Also:
KeyPairCredential.dispose()

toString

public String toString()
A string representation of this object.
Overrides:
toString in class Object
Returns:
A string representation of the keypair credential

finalize

protected void finalize()
Disposes of this credential.
Overrides:
finalize in class Object
See Also:
KeyPairCredential.dispose()

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09