BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.security.SSL
Class SSLCertificate

java.lang.Object
  |
  +--weblogic.security.SSL.HandshakeMessage
        |
        +--weblogic.security.SSL.SSLCertificate

public class SSLCertificate
extends weblogic.security.SSL.HandshakeMessage

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Field Summary
 java.util.Vector certificateList
          The chain of certificates, ordered with sender's certificate first and the root CA last.
 weblogic.security.RSAPrivateKey privateKey
          The private key of the certificate holder.
 weblogic.security.SSL.SSLState state
          The SSL session state.
 
Constructor Summary
SSLCertificate()
          Constructor for SSLCertificate.
SSLCertificate(weblogic.security.SSL.SSLState s)
          Constructor for SSLCertificate.
 
Method Summary
 X509[] getCertificates()
           
 weblogic.security.RSAPrivateKey getPrivateKey()
          Return RSA private key of the certificate holder.
 weblogic.security.RSAPublicKey getPublicKey()
          The RSA public key of the sender's certificate.
 void input(java.io.InputStream is)
          Input certificate chain from the given InputStream.
 X509 leafCert()
          The leaf certificate of the certificate chain.
 int length()
          Length of certificate chain.
 void output(java.io.OutputStream os)
          Output certificate chain to the given OutputStream.
 X509 rootCA()
          The root CA of the certificate chain.
 boolean rootCAvalid()
          Check if root CA matches fingerprints specified in the session state.
 boolean rootCAvalid(byte[][] fingerPrints)
          Check if the root CA fingerprint matches list of valid fingerprints.
 java.lang.String toString()
          What rolls down stairs,
Alone or in pairs,
Rolls over your neighbor's dog?
What's great for a snack,
And fits on your back?
It's log, log, log!
 boolean validateCertChain(com.rsa.certj.cert.X509Certificate[] certChain)
           
 void verify()
          Verify certificate chain by walking to the root.
 boolean verifyCAExtensions(com.rsa.certj.cert.X509Certificate cert, int depth)
           
 boolean verifyEndEntity(com.rsa.certj.cert.X509Certificate cert)
           
 boolean verifySelfSignedCert(com.rsa.certj.cert.X509Certificate cert, int depth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

certificateList

public java.util.Vector certificateList
The chain of certificates, ordered with sender's certificate first and the root CA last.

state

public weblogic.security.SSL.SSLState state
The SSL session state.

privateKey

public weblogic.security.RSAPrivateKey privateKey
The private key of the certificate holder.
Constructor Detail

SSLCertificate

public SSLCertificate()
Constructor for SSLCertificate.

SSLCertificate

public SSLCertificate(weblogic.security.SSL.SSLState s)
Constructor for SSLCertificate.
Method Detail

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Output certificate chain to the given OutputStream.

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Input certificate chain from the given InputStream.

verify

public void verify()
            throws java.io.IOException
Verify certificate chain by walking to the root.

validateCertChain

public boolean validateCertChain(com.rsa.certj.cert.X509Certificate[] certChain)

verifySelfSignedCert

public boolean verifySelfSignedCert(com.rsa.certj.cert.X509Certificate cert,
                                    int depth)

verifyCAExtensions

public boolean verifyCAExtensions(com.rsa.certj.cert.X509Certificate cert,
                                  int depth)

verifyEndEntity

public boolean verifyEndEntity(com.rsa.certj.cert.X509Certificate cert)

length

public int length()
Length of certificate chain.

toString

public java.lang.String toString()
What rolls down stairs,
Alone or in pairs,
Rolls over your neighbor's dog?
What's great for a snack,
And fits on your back?
It's log, log, log!


It's lo-og, lo-og,
It's big, it's heavy, it's wood!
It's lo-og, lo-og,
It's better than bad, it's good!


Everyone wants a log,
You're gonna love it, log
Come on and get your log,
Everyone needs a log...


BY BLAMMO!


String representation of certificate chain.

Overrides:
toString in class java.lang.Object

getPublicKey

public weblogic.security.RSAPublicKey getPublicKey()
The RSA public key of the sender's certificate.

getPrivateKey

public weblogic.security.RSAPrivateKey getPrivateKey()
Return RSA private key of the certificate holder.

rootCA

public X509 rootCA()
The root CA of the certificate chain.

leafCert

public X509 leafCert()
The leaf certificate of the certificate chain.

getCertificates

public X509[] getCertificates()

rootCAvalid

public boolean rootCAvalid(byte[][] fingerPrints)
Check if the root CA fingerprint matches list of valid fingerprints.

rootCAvalid

public boolean rootCAvalid()
Check if root CA matches fingerprints specified in the session state.

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.