Class ECKeyValue

    • Constructor Detail

      • ECKeyValue

        public ECKeyValue​(org.w3c.dom.Element element,
                          java.lang.String baseURI)
                   throws XMLSecurityException
        Constructor DSAKeyValue
        Parameters:
        element -
        baseURI -
        Throws:
        XMLSecurityException
      • ECKeyValue

        public ECKeyValue​(org.w3c.dom.Document doc,
                          java.security.Key key)
                   throws java.lang.IllegalArgumentException
        Constructor DSAKeyValue
        Parameters:
        doc -
        key -
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • initializeCurve

        private static ECKeyValue.Curve initializeCurve​(java.lang.String name,
                                                        java.lang.String oid,
                                                        java.lang.String sfield,
                                                        java.lang.String a,
                                                        java.lang.String b,
                                                        java.lang.String x,
                                                        java.lang.String y,
                                                        java.lang.String n,
                                                        int h)
      • getBaseLocalName

        public java.lang.String getBaseLocalName()
        Returns the localname of the Elements of the sub-class.
        Specified by:
        getBaseLocalName in class ElementProxy
        Returns:
        the localname of the Elements of the sub-class.
      • getFirstChildElement

        private static org.w3c.dom.Element getFirstChildElement​(org.w3c.dom.Node node)
      • getNextSiblingElement

        private static org.w3c.dom.Element getNextSiblingElement​(org.w3c.dom.Node node,
                                                                 java.lang.String localName,
                                                                 java.lang.String namespaceURI)
                                                          throws javax.xml.crypto.MarshalException
        Throws:
        javax.xml.crypto.MarshalException
      • getNextSiblingElement

        private static org.w3c.dom.Element getNextSiblingElement​(org.w3c.dom.Node node)
      • verifyElement

        private static org.w3c.dom.Element verifyElement​(org.w3c.dom.Element elem,
                                                         java.lang.String localName,
                                                         java.lang.String namespaceURI)
                                                  throws javax.xml.crypto.MarshalException
        Throws:
        javax.xml.crypto.MarshalException
      • getCurveOid

        private static java.lang.String getCurveOid​(java.security.spec.ECParameterSpec params)
      • matchCurve

        private static boolean matchCurve​(java.security.spec.ECParameterSpec params,
                                          ECKeyValue.Curve curve)
      • decodePoint

        private static java.security.spec.ECPoint decodePoint​(byte[] data,
                                                              java.security.spec.EllipticCurve curve)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • encodePoint

        private static byte[] encodePoint​(java.security.spec.ECPoint point,
                                          java.security.spec.EllipticCurve curve)
      • trimZeroes

        private static byte[] trimZeroes​(byte[] b)
      • getECParameterSpec

        private static java.security.spec.ECParameterSpec getECParameterSpec​(java.lang.String oid)
      • bigInt

        private static java.math.BigInteger bigInt​(java.lang.String s)