![JAR search and dependency download from the Maven repository](/logo.png)
bali.notary.handlers.PrivateKeyHandler Maven / Gradle / Ivy
/************************************************************************
* Copyright (c) Crater Dog Technologies(TM). All Rights Reserved. *
************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. *
* *
* This code is free software; you can redistribute it and/or modify it *
* under the terms of The MIT License (MIT), as published by the Open *
* Source Initiative. (See http://opensource.org/licenses/MIT) *
************************************************************************/
package bali.notary.handlers;
import bali.language.handlers.JavaTypeHandler;
import bali.language.nodes.ComponentNode;
import bali.language.nodes.NoneNode;
import java.security.PrivateKey;
/**
* This class handles the marshaling of a private key into a PEM string. Since
* the private key must be kept secret this class simply returns a default message.
*
* @author Derk Norton
*/
public final class PrivateKeyHandler implements JavaTypeHandler {
@Override
public ComponentNode fromObject(T privateKey, Class>... parameterTypes) {
ComponentNode componentNode = new ComponentNode(NoneNode.NONE);
return componentNode;
}
@Override
public PrivateKey toObject(ComponentNode componentNode, Class> targetType, Class>... parameterTypes) {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy