@Inject public DefaultSecurityTokenCodec(ContainerConfig config) { String tokenType = config.getString(ContainerConfig.DEFAULT_CONTAINER, SECURITY_TOKEN_TYPE); if ("insecure".equals(tokenType)) { codec = new BasicSecurityTokenCodec(); } else if ("secure".equals(tokenType)) { codec = new BlobCrypterSecurityTokenCodec(config); } else { throw new RuntimeException("Unknown security token type specified in " + ContainerConfig.DEFAULT_CONTAINER + " container configuration. " + SECURITY_TOKEN_TYPE + ": " + tokenType); } }
@Inject public DefaultSecurityTokenCodec(ContainerConfig config) { String tokenType = config.getString(ContainerConfig.DEFAULT_CONTAINER, SECURITY_TOKEN_TYPE); if ("insecure".equals(tokenType)) { codec = new BasicSecurityTokenCodec(config); } else if ("secure".equals(tokenType)) { codec = new BlobCrypterSecurityTokenCodec(config); } else { throw new RuntimeException("Unknown security token type specified in " + ContainerConfig.DEFAULT_CONTAINER + " container configuration. " + SECURITY_TOKEN_TYPE + ": " + tokenType); } }
@Inject public DefaultSecurityTokenCodec(ContainerConfig config) { String tokenType = config.getString(ContainerConfig.DEFAULT_CONTAINER, SECURITY_TOKEN_TYPE); if ("insecure".equals(tokenType)) { codec = new BasicSecurityTokenCodec(config); } else if ("secure".equals(tokenType)) { codec = new BlobCrypterSecurityTokenCodec(config); } else { throw new RuntimeException("Unknown security token type specified in " + ContainerConfig.DEFAULT_CONTAINER + " container configuration. " + SECURITY_TOKEN_TYPE + ": " + tokenType); } }
@Inject public DefaultSecurityTokenCodec(ContainerConfig config) { String tokenType = config.getString(ContainerConfig.DEFAULT_CONTAINER, SECURITY_TOKEN_TYPE); if ("insecure".equals(tokenType)) { codec = new BasicSecurityTokenCodec(config); } else if ("secure".equals(tokenType)) { codec = new BlobCrypterSecurityTokenCodec(config); } else { throw new RuntimeException("Unknown security token type specified in " + ContainerConfig.DEFAULT_CONTAINER + " container configuration. " + SECURITY_TOKEN_TYPE + ": " + tokenType); } }
@Inject public DefaultSecurityTokenCodec(ContainerConfig config) { String tokenType = config.getString(ContainerConfig.DEFAULT_CONTAINER, SECURITY_TOKEN_TYPE); if ("insecure".equals(tokenType)) { codec = new BasicSecurityTokenCodec(); } else if ("secure".equals(tokenType)) { codec = new BlobCrypterSecurityTokenCodec(config); } else { throw new RuntimeException("Unknown security token type specified in " + ContainerConfig.DEFAULT_CONTAINER + " container configuration. " + SECURITY_TOKEN_TYPE + ": " + tokenType); } }
@Before public void setUp() throws Exception { config = new BasicContainerConfig(); config .newTransaction() .addContainer(makeContainer("default")) .addContainer(makeContainer("container")) .addContainer(makeContainer("example")) .commit(); codec = new BlobCrypterSecurityTokenCodec(config); timeSource = new FakeTimeSource(); }
@Before public void setUp() throws Exception { config = new BasicContainerConfig(); config .newTransaction() .addContainer(makeContainer("default")) .addContainer(makeContainer("container")) .addContainer(makeContainer("example")) .commit(); codec = new BlobCrypterSecurityTokenCodec(config); timeSource = new FakeTimeSource(); }
@Before public void setUp() throws Exception { config = new BasicContainerConfig(); config .newTransaction() .addContainer(makeContainer("default")) .addContainer(makeContainer("container")) .addContainer(makeContainer("example")) .commit(); codec = new BlobCrypterSecurityTokenCodec(config); timeSource = new FakeTimeSource(); }