CertificateSlot.getUses()

Method

Declaration

int getUses()

Purpose

Get the uses of this certificate within the component.

Remarks

Each daemon component that supports the SecurityProxy interface uses certificates in up to three ways. This method returns a bit vector that describes the set of ways that the component actually uses the certificate in this slot.

The three constants defined for SecurityProxy correspond to positions in the bit vector. To determine whether a specific use applies to the certificate, probe the corresponding bit with Java’s bitwise AND (&) operator; for example:

 

if ( myCert.getUses() & SecurityProxy.HTTPS
     != 0 {
           // My daemon uses this certificate for HTTPS.
           ... }

See Also

SecurityProxy

SecurityProxy.setCertificateUses()

For the corresponding browser pages, see Certificate Uses in TIBCO Rendezvous Administration.