public class SecurityContext extends Object
Constructor and Description |
---|
SecurityContext() |
SecurityContext(SecurityRequirement requirement) |
SecurityContext(SSLContext context) |
SecurityContext(SSLContext context,
SecurityRequirement req) |
Modifier and Type | Method and Description |
---|---|
SSLContext |
getContext()
Gets the currently set SSL context.
|
SecurityRequirement |
getRequirement() |
Set<String> |
getSupportedCiphers()
Gets all the supported ciphers.
|
boolean |
isCipherSupported(String name) |
SSLContext |
setContext(SSLContext context)
Sets the SSL context to be used.
|
SecurityRequirement |
setRequirement(SecurityRequirement requirement)
Sets the necessities of the security context.
|
public SecurityContext()
public SecurityContext(SecurityRequirement requirement)
public SecurityContext(SSLContext context)
public SecurityContext(SSLContext context, SecurityRequirement req)
public SSLContext getContext()
Gets the currently set SSL context.
public final SSLContext setContext(SSLContext context)
Sets the SSL context to be used.
context
- the SSL context to be setpublic SecurityRequirement getRequirement()
public final SecurityRequirement setRequirement(SecurityRequirement requirement)
Sets the necessities of the security context.
requirement
- the requrement to be achievedpublic boolean isCipherSupported(String name)
Copyright © 2023. All rights reserved.