Package com.yahoo.security
Record Class X509SslContext
java.lang.Object
java.lang.Record
com.yahoo.security.X509SslContext
public record X509SslContext(SSLContext context, X509ExtendedTrustManager trustManager, X509ExtendedKeyManager keyManager)
extends Record
- Author:
- bjorncs
-
Constructor Summary
ConstructorsConstructorDescriptionX509SslContext(SSLContext context, X509ExtendedTrustManager trustManager, X509ExtendedKeyManager keyManager) Creates an instance of aX509SslContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.static X509SslContextfinal inthashCode()Returns a hash code value for this object.Returns the value of thekeyManagerrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrustManagerrecord component.
-
Constructor Details
-
X509SslContext
public X509SslContext(SSLContext context, X509ExtendedTrustManager trustManager, X509ExtendedKeyManager keyManager) Creates an instance of aX509SslContextrecord class.- Parameters:
context- the value for thecontextrecord componenttrustManager- the value for thetrustManagerrecord componentkeyManager- the value for thekeyManagerrecord component
-
-
Method Details
-
getDefault
- Returns:
- the default instance of
X509SslContext
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
trustManager
Returns the value of thetrustManagerrecord component.- Returns:
- the value of the
trustManagerrecord component
-
keyManager
Returns the value of thekeyManagerrecord component.- Returns:
- the value of the
keyManagerrecord component
-