/* Copyright (c) 2012-2013, Isode Limited, London, England. * All rights reserved. * * Acquisition and use of this software and related materials for any * purpose requires a written licence agreement from Isode Limited, * or a written licence from an organisation licensed by Isode Limited Limited * to grant such a licence. * */ package com.isode.stroke.tls.java; import java.util.HashSet; import java.util.Set; import com.isode.stroke.tls.TLSContext; import com.isode.stroke.tls.TLSOptions; import com.isode.stroke.tls.TLSContextFactory; /** * Concrete implementation of a TLSContextFactory which uses SSLEngine * *
Ciphersuite names recognised by this class correspond to the standard
* names as described in
*
* Oracle's "Java Cryptography Architecture Standard Algorithm Name Documentation".
*
*/
public class JSSEContextFactory implements TLSContextFactory {
@Override
public boolean canCreate() {
return true;
}
@Override
public TLSContext createTLSContext(TLSOptions tlsOptions) {
return new JSSEContext(restrictedCipherSuites);
}
private static Set