本文整理匯總了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")
)
)
)
)
)
);
}