本文整理汇总了Java中org.takes.facets.auth.codecs.CcXor类的典型用法代码示例。如果您正苦于以下问题:Java CcXor类的具体用法?Java CcXor怎么用?Java CcXor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CcXor类属于org.takes.facets.auth.codecs包,在下文中一共展示了CcXor类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: auth
import org.takes.facets.auth.codecs.CcXor; //导入依赖的package包/类
/**
* Auth.
* @param take Takes
* @return Authenticated takes
*/
private static Take auth(final Take take) {
return new TkAuth(
new TkFork(
new FkParams(
PsByFlag.class.getSimpleName(),
Pattern.compile(".+"),
new TkRedirect()
),
new FkFixed(take)
),
new PsChain(
new PsFake(
Manifests.read("ThreeCopies-DynamoKey").startsWith("AAAA")
),
new PsByFlag(
new PsByFlag.Pair(
PsGithub.class.getSimpleName(),
new PsGithub(
Manifests.read("ThreeCopies-GithubId"),
Manifests.read("ThreeCopies-GithubSecret")
)
),
new PsByFlag.Pair(
PsLogout.class.getSimpleName(),
new PsLogout()
)
),
new PsCookie(
new CcSafe(
new CcHex(
new CcXor(
new CcSalted(new CcCompact()),
Manifests.read("ThreeCopies-SecurityKey")
)
)
)
)
)
);
}
示例2: make
import org.takes.facets.auth.codecs.CcXor; //导入依赖的package包/类
/**
* Authenticated.
* @param take Takes
* @return Authenticated takes
*/
private static Take make(final Take take) {
return new TkAuth(
new TkFork(
new FkParams(
PsByFlag.class.getSimpleName(),
Pattern.compile(".+"),
new TkRedirect()
),
new FkFixed(take)
),
new PsChain(
new PsFake(
Manifests.read("Jare-DynamoKey").startsWith("AAAA")
),
new PsByFlag(
new PsByFlag.Pair(
PsGithub.class.getSimpleName(),
new PsGithub(
Manifests.read("Jare-GithubId"),
Manifests.read("Jare-GithubSecret")
)
),
new PsByFlag.Pair(
PsLogout.class.getSimpleName(),
new PsLogout()
)
),
new PsCookie(
new CcSafe(
new CcHex(
new CcXor(
new CcSalted(new CcCompact()),
Manifests.read("Jare-SecurityKey")
)
)
)
)
)
);
}
示例3: make
import org.takes.facets.auth.codecs.CcXor; //导入依赖的package包/类
/**
* Authenticated.
* @param take Takes
* @return Authenticated takes
*/
private static Take make(final Take take) {
return new TkAuth(
new TkFork(
new FkParams(
PsByFlag.class.getSimpleName(),
Pattern.compile(".+"),
new TkRedirect()
),
new FkFixed(take)
),
new PsChain(
new PsFake(
Manifests.read("Wring-DynamoKey").startsWith("AAAA")
),
new PsByFlag(
new PsByFlag.Pair(
PsGithub.class.getSimpleName(),
new PsGithub(
Manifests.read("Wring-GithubId"),
Manifests.read("Wring-GithubSecret")
)
),
new PsByFlag.Pair(
PsLogout.class.getSimpleName(),
new PsLogout()
)
),
new PsCookie(
new CcSafe(
new CcHex(
new CcXor(
new CcSalted(new CcCompact()),
Manifests.read("Wring-SecurityKey")
)
)
)
)
)
);
}